package com.itheima.reggie.service;

import com.itheima.reggie.dto.OrderDto;
import com.itheima.reggie.entity.Orders;
import com.itheima.reggie.entity.Page;
import com.itheima.reggie.entity.User;

import java.time.LocalDateTime;

/**
 * @author 黑马程序员
 */
public interface OrderService {

    /**
     * 生产订单
     * @param orders 订单对象
     * @param user 登录的用户
     */
    void submit(Orders orders, User user);

    Page<Orders> findByPage(Integer page, Integer pageSize, String number, LocalDateTime beginTime, LocalDateTime endTime);

    Page<OrderDto> findByUserPage(Integer page, Integer pageSize,Long userId);

}
